﻿using System;
using System.Collections.Generic;
using System.Text;
using Infrastructure.Lib.Core;

namespace CrmSpider.Model
{
    public class TraceRecordCollection : List<TraceRecordModel>
    {
        public TraceRecordCollection(string oriStr)
        {
            var recordStr = oriStr.Substring2("Panel_1_添加客户_TabStrip1_Tab5_Grid_跟踪记录_ctl07", "</div></div>", true);
            var records = recordStr.Matches("(?<=expander\">)[\\s\\S]+?(?=</div>[^p]+?div)");
            foreach (var r in records)
            {
                this.Add(new TraceRecordModel(r));
            }
        }
    }
}
